

var http=require("http");
http.createServer(function (req,res) {
     var resA=res;

     http.get("http://study.163.com/",function (res) {
         var html="";
          res.on("data",function (data) {
              html+=data;
          });
         res.on("end",function () {
              resA.statusCode=200;
              resA.setHeader("Content-Type","text/html");
              resA.end(html);
         })
     });

}).listen(8080);